package com.subang.function.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.subang.common.annotation.Excel;
import com.subang.common.core.domain.BaseEntity;

/**
 * 用户收藏对象 sys_user_collect
 * 
 * @author subei
 * @date 2025-03-22
 */
public class SysUserCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 收藏类型（上岸经验、苏榜原创、成语等） */
    @Excel(name = "收藏类型", readConverterExp = "上=岸经验、苏榜原创、成语等")
    private String collectType;

    /** 收藏内容的ID */
    @Excel(name = "收藏内容的ID")
    private Long collectId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    @Excel(name = "是否收藏")
    private Long isCollected;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCollectType(String collectType) 
    {
        this.collectType = collectType;
    }

    public String getCollectType() 
    {
        return collectType;
    }

    public void setCollectId(Long collectId) 
    {
        this.collectId = collectId;
    }

    public Long getCollectId() 
    {
        return collectId;
    }

    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("collectType", getCollectType())
            .append("collectId", getCollectId())
            .append("collectTime", getCollectTime())
            .append("isCollected", getIsCollected())
            .toString();
    }

    public Long getIsCollected() {
        return isCollected;
    }

    public void setIsCollected(Long isCollected) {
        this.isCollected = isCollected;
    }
}
